<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link th:href="@{bootstrap/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{bootstrap/css/bootstrap-theme.css}" rel="stylesheet">
    <title>登录页面</title>

</head>
<body>

<div th:if="${param.error}">
    <span style="color: red">无效的账号和密码</span>
</div>
<div th:if="${param.logout}">
    <span style="color: red">你已经注销</span>
</div>


<form th:action="@{/login}" method="POST" role="form">
    <legend>用户登录</legend>

    <div class="form-group">
        <label>账号 : </label>
        <input type="text" class="form-control" name="username" placeholder="wisely">
    </div>
    <div class="form-group">
        <label>密码 : </label>
        <input type="password" class="form-control" name="password" placeholder="wisely">
    </div>
    <button type="submit" class="btn btn-primary">登录</button>
</form>

</body>
</html>
